package com.danhuang.cloud.danhuanggateway.config;


import com.danhuang.cloud.danhuanggateway.Interceptor.OpenIdFInterceptor;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenIdInterceptorConfig {

    @Bean
    public GlobalFilter tokenFilter() {
        return new OpenIdFInterceptor();
    }

}
